package com.yishuclass.common.domain.model;

import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * @ClassName YsExchangeCode
 * @Description 艺术超级课堂兑换码管理
 * @Author wangdongliang
 * @Date 2021/5/17 9:00
 */
@Data
public class YsExchangeCode {
    @TableId
    private Integer id;
    /*城市id*/
    @NotNull(message = "区域id不能为空")
    private Integer cityId;
    /*年级id*/
    @NotNull(message = "年级id不能为空")
    private Integer gradeId;
    /*学期id*/
    @NotNull(message = "学期不能为空")
    private Integer semesterId;
    /*兑换码数量*/
    @NotNull(message = "兑换码数量不能为空")
    private Integer codeNum;
    /*删除状态：1删除，0未删除*/
    private Integer isDeleted = 0;
    /*创建时间*/
    private LocalDateTime createTime;
    /*最后更新时间*/
    private LocalDateTime updateTime;
}
